package com.ruoyi.common.utils;

public class RuleUtils {

    public static String getRuleTypeName(Integer rule_type){
        String type = "未知";
        switch (rule_type){
            case 33:
                type = "诊疗科目规则";
                break;
            case 34:
                type = "药物预警";
                break;
            case 35:
                type = "处方权规则";
                break;
            case 36:
                type = "患者年龄规则";
                break;
            case 37:
                type = "诊疗科目规则";
                break;
            case 40:
                type = "校验期逾期预警规则";
                break;
            case 41:
                type = "执业许可证逾期预警规则";
                break;
            default:
                break;
        }
        return type;
    }

    public static String getRuleContent(Integer type, String doctorName,String patientName,String hosName,Object value,String projectName) {
        String content = "";
        switch (type){
            case 33:
                content = hosName + "没有开设" + value;
                break;
            case 34:
                content = projectName + "是限制级药品";
                break;
            case 35:
                content = doctorName + "没有该限制级药品权限";
                break;
            case 36:
                content = "患者" + patientName + "年龄未到" + value + "岁";
                break;
            case 37:
                content = "";
                break;
            case 40:
                content = "";
                break;
            case 41:
                content = "";
                break;
            default:
                break;
        }
        return content;

    }
}
